#pragma once

#include <QComboBox>
#include <QDoubleSpinBox>
#include <QSlider>
#include "particledefine.h"

namespace ParticleEditor
{
	class CounterWidget : public QWidget
	{
	   Q_OBJECT
	public:
	   CounterWidget();
	   ~CounterWidget();

	   void initParticleCounter(ParticleSystemLayer ps);
	   void copyLayer(ParticleSystemLayer psl,ParticleSystemLayer newpsl);
	public slots:
	   void slotsRandomRateMinRateSpinBoxValueChanged(double newValue);
	   void slotsRandomRateMaxRateSpinBoxValueChanged(double newValue);
	private:
	   void setupUI();
	   QDoubleSpinBox*								_randomRateMinRateSpinBox;
	   QDoubleSpinBox*								_randomRateMaxRateSpinBox;
	   ParticleSystemLayer							_particleSystemLayer;
	};
}